// 程序入口
class GameMain {
    constructor() {
        App.Init(1472, 828);
        App.ResourceUtils.loadConfig(["default.res.json"], this.onLoadConfig, this)
    }

    private onLoadConfig(urls: string[]): void {
        App.ResourceUtils.loadGroup(["preload"], this.onLoadGroup, null, this)
    }

    private onLoadGroup() {
        var t: Laya.Texture = App.ResourceUtils.getRes("comp_png")
        var ape: Laya.Sprite = new Laya.Sprite()
        ape.graphics.drawTexture(t, 0, 0)
        //Laya.stage.addChild(ape)
        //ape.pos(200, 0)

        new Game()
    }
}
new GameMain();